<?php

namespace app\api\model;

use think\Model;
class Users extends Model
{

    //获取指定字段
    public static function getValue($where,$field){
        return self::where($where)->value($field);
    }

    //获取用户信息
    public static function getInfo($where,$field){
        return self::where($where)->field($field)->find();
    }

    //修改用户信息
    public static function saveUser($where,$data){
        return self::where($where)->update($data);
    }
}
